home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
cstdio.arc
/
SRC.ARC
/
UNLINK.A
< prev
next >
Wrap
Text File
|
1985-05-17
|
501b
|
29 lines
; unlink.a - remove directory entry.
; (C) Copyright 1984, 1985 Gregory R. Mansfield - All Rights Reserved.
; G. R. Mansfield. 84/07/25.
; Ver 1.0-5517.
include "include/msdos.ah"
dseg
public errno_
cseg
public unlink_
; int unlink(name)
; char *name;
unlink_:
mov bx,sp
mov dx,[bx+2] ; pointer to path name
xor bx,bx ; preset no error
mov ah,FR_DDE ; delete directory entry
int I_FCN
jnb unl1 ; if no error
mov errno_,ax
dec bx
unl1: xchg ax,bx
ret